﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AlgoFun.PassByRefAndVal
{
    public class TheClass
    {
        public string willIChange;
    }

    public struct TheStruct
    {
        public string willIChange;
    }

    public static class TestClassAndStruct
    {
        public static void ClassTaker(TheClass c)
        {
            c.willIChange = "Changed";
        }

        public static void StructTaker(TheStruct s)
        {
            s.willIChange = "Changed";
        }

    }
    /* Output:
        Class field = Changed
        Struct field = Not Changed
    */
}
